#!/usr/bin/env python3
from functools import reduce


def square(x):
    return x * x


print(list(map(square, [1, 2, 3, 4, 5])))
if __name__ == '__main__':
    print(reduce(lambda x, y: x + y, [1, 2, 3, 4, 5]))
